//@ts-nocheck
import { defineStore } from "pinia";

export const useLocalStore: any = defineStore("pipe_localStore", {
  state: () => {
    return {
      selectedFeature: null,
      updatePointAPICount: -1,
      updateLineAPICount: -1,
    };
  },
  actions: {
    setSelectedFeature(feature: any) {
      this.selectedFeature = feature;
    },
    addUpdatePointAPICount(count) {
      this.updatePointAPICount += 1;
    },
    addUpdateLineAPICount(count) {
      this.updateLineAPICount += 1;
    },
  },
});
